export default {
	upToken(state, token) {
		uni.setStorage({
			key: 'token',
			data: token
		})
		state.token = token
	},
	setStatusBarHeight(state, value) {
		state.statusBarHeight = value
	},
	setNavigationBarHeight(state, value) {
		state.navigationBarHeight = value
	},
	upUserInfo(state, value) {
		state.userInfo = value
	},
	upIndexInfo(state, value) {
		state.IndexInfo = value
	},
	upChoosePlan(state, value) {
		state.choosePlan = value
	},
	upChooseClassicsPlan(state, value) {
		state.chooseClassicsPlan = value
	},
	upChooseType(state, value) {
		state.chooseType = value
	},
	upSuccessPay: (state, value) => {
		state.successPay = value
	},
	upCurrentCity: (state, value) => {
		state.currentCity = value
	},
	upAreaId: (state, value) => {
		state.areaId = value
	},
	upRefreshIndexFlag: (state, value) => {
		state.refresh_index_flag = value
	},
	upTipsFlag(state, value) {
		state.tips_flag = value
	},
	upConnectFlag(state, value) {
		state.connect_flag = value
	},
	upChargingFlag: (state, value) => {
		state.charging_flag = value
	},
	upDetailsFlag: (state, value) => {
		state.detailsFlag = value
	}
}